package com.unsky.utils.vo;

public class ObjRetVO  extends RetVO{
	private int code;
	private String msg;
	private Object obj;
	
	public ObjRetVO() {
		super();
	}
	/**
	 * 用于
	 * @param code
	 * @param msg
	 * @param obj
	 */
	public ObjRetVO(int code, String msg, Object obj) {
		super();
		this.code = code;
		this.msg = msg;
		this.obj = obj;
	}
	
	/**
	 * 用于异常信息
	 * @param code
	 * @param msg
	 */
	public ObjRetVO(int code, String msg) {
		this(code,msg,null);
	}
	/**
	 * 用于成功返回
	 * @param obj
	 */
	public ObjRetVO(Object obj) {
		this(SUCESS_STATUS,MSG_SUCCESS,obj);
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Object getObj() {
		return obj;
	}
	public void setObj(Object obj) {
		this.obj = obj;
	}
	
}
